﻿@using CodeGenerator
@using RazorLight
@using BXJG.Common;
@inherits TemplatePage<ExecuteContext>
@{
    DisableEncoding = true;//禁止html编码，因为我们是做代码生成器
}

using @(Model.Model.ApplicationShareNamespace);
using @Model.Model.CoreShareNamespace;

namespace @(Model.Model.BlazorClientNamespace)
{
    public partial class DetailUpdate
    {
        //[Parameter]
        //public object Master {  get; set; }

        protected override string FuncName => "@Model.Model.DisplayName";
        /// <summary>
        /// 
        /// </summary>
        string detailUpdateText => isEdit ? "修改" : "查看";

        string detailUpdateIcon => isEdit ? IconType.Outline.Edit : IconType.Outline.File;

        [AbpExceptionInterceptor]
        protected override async Task OnInitializedAsync()
        {
            await base.OnInitializedAsync();
            await base.InitPermission(@Model.Model.PermissionNameUpdateConst,
                                      @Model.Model.PermissionNameDeleteConst);
        }
    }
}